Collaboration diagram for XFcGLVertexBuffer:

Public Member Functions | |
| virtual XFCIMPORT | ~XFcGLVertexBuffer () |
| Virtual destructor. | |
| XFCIMPORT INT32 | getFlags () |
| Returns creation flags. | |
| XFCIMPORT INT32 | getVertexStride () |
| Returns how many bytes each vertex takes in the buffer. | |
| XFCIMPORT INT32 | getNumVertices () |
| Returns the vertex count. | |
| XFCIMPORT void * | lock (INT32 aLockFlags) |
| Locks vertex buffer. | |
| XFCIMPORT INT32 | unlock () |
| Unlocks the vertex buffer. Buffer must be unlocked in order to be used. | |
| XFCIMPORT INT32 | optimize () |
| Optimizes a vertex buffer. | |
Static Public Member Functions | |
| XFCIMPORT XFcGLVertexBuffer * | create (INT32 aVertexFlags, INT32 aSizeOfVertex, INT32 aNumberOfVertices) |
| Creates a XFcGLVertexBuffer object. | |
Protected Member Functions | |
| XFcGLVertexBuffer () | |
| Protected constructor. | |
| void | initVariables () |
| Initializes all variables to default values. | |
| INT32 | initOffsets (INT32 aVertexFlags) |
| Initializes all offsets. | |
| INT | isValid () |
| Returns non-zero if the vertex buffer is valid. | |
| INT32 | createProcessedBufferFlags (INT32 aSrcVertexFlags) |
| Returns flags suitable for processed vertices on buffer with given flags. | |
Protected Attributes | |
| INT32 | mVertexFlags |
| Vertex flags (from construction). | |
| INT32 | mVertexStride |
| Size of one vertex. | |
| INT32 | mNumberOfVertices |
| Number of vertices in buffer. | |
| void * | mVertexData |
| Pointer to vertex data. | |
| INT32 | mStateCount |
| Matrix state/lock counter that was used to calculate the following. | |
| XFcVector3 * | mPosition |
| UINT32 * | mDiffuseColor |
| REAL * | mUV |
| XFcVector3 * | mNormal |
| INT | mIsOptimized |
| Non-zero if this vertex buffer is optimized. | |
| INT | mRHWOffs |
| Offset to RHW component, or 0 if not supported by format. | |
| INT | mNormalOffs |
| Offset to the normal, or 0 if not supported by format. | |
| INT | mDiffuseColorOffs |
| Offset to the diffuse color, or 0 if not supported by format. | |
| INT | mSpecularColorOffs |
| Offset to the specular color, or 0 if not supported by format. | |
| INT | mTexture1Offs |
| Offset to texture 1 coordinates, or 0 if not supported by format. | |
| INT | mTexture2Offs |
| Offset to texture 2 coordinates, or 0 if not supported by format. | |
| INT | mTexture3Offs |
| Offset to texture 3 coordinates, or 0 if not supported by format. | |
| INT | mTexture4Offs |
| Offset to texture 4 coordinates, or 0 if not supported by format. | |
| INT | mClipInfoOffs |
| Offset to clip info, or 0 if not supported by format. | |
Friends | |
| class | XFcGLCore |
| XFcGLCore needs access to offsets (and is the only class that needs it). | |
This is a wrapper for an array of vertices. The vertex format itself is flexible - see XFcGLVertex, XFcGLLVertex and XFcGLTLVertex as examples of legal vertex formats.
|
|
Virtual destructor.
|
|
|
Protected constructor.
|
|
||||||||||||||||
|
Creates a XFcGLVertexBuffer object.
|
|
|
Returns flags suitable for processed vertices on buffer with given flags.
|
|
|
Returns creation flags.
|
|
|
Returns the vertex count.
|
|
|
Returns how many bytes each vertex takes in the buffer.
|
|
|
Initializes all offsets.
|
|
|
Initializes all variables to default values.
|
|
|
Returns non-zero if the vertex buffer is valid.
|
|
|
Locks vertex buffer.
|
|
|
Optimizes a vertex buffer.
|
|
|
Unlocks the vertex buffer. Buffer must be unlocked in order to be used.
|
|
|
XFcGLCore needs access to offsets (and is the only class that needs it).
|
|
|
Offset to clip info, or 0 if not supported by format.
|
|
|
|
|
|
Offset to the diffuse color, or 0 if not supported by format.
|
|
|
Non-zero if this vertex buffer is optimized.
|
|
|
|
|
|
Offset to the normal, or 0 if not supported by format.
|
|
|
Number of vertices in buffer.
|
|
|
|
|
|
Offset to RHW component, or 0 if not supported by format.
|
|
|
Offset to the specular color, or 0 if not supported by format.
|
|
|
Matrix state/lock counter that was used to calculate the following.
|
|
|
Offset to texture 1 coordinates, or 0 if not supported by format.
|
|
|
Offset to texture 2 coordinates, or 0 if not supported by format.
|
|
|
Offset to texture 3 coordinates, or 0 if not supported by format.
|
|
|
Offset to texture 4 coordinates, or 0 if not supported by format.
|
|
|
|
|
|
Pointer to vertex data.
|
|
|
Vertex flags (from construction).
|
|
|
Size of one vertex.
|
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch | ||